package cn.iocoder.yudao.module.erp.controller.admin.depplan.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;
import com.alibaba.excel.annotation.*;
import cn.iocoder.yudao.framework.excel.core.annotations.DictFormat;
import cn.iocoder.yudao.framework.excel.core.convert.DictConvert;

@Schema(description = "管理后台 - ERP 科室采购计划 Response VO")
@Data
@ExcelIgnoreUnannotated
public class DepPlanRespVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "433")
    @ExcelProperty("编号")
    private Long id;

    @Schema(description = "部门id", example = "26296")
    @ExcelProperty("部门id")
    private String deptId;

    @Schema(description = "产品编号", example = "26894")
    @ExcelProperty("产品编号")
    private String productId;

    @Schema(description = "产品名称", example = "王五")
    @ExcelProperty("产品名称")
    private String productName;

    @Schema(description = "产品单位")
    @ExcelProperty("产品单位")
    private String productUnit;

    @Schema(description = "产品规格")
    @ExcelProperty("产品规格")
    private String productStandards;

    @Schema(description = "产品单价", example = "31294")
    @ExcelProperty("产品单价")
    private BigDecimal productPrice;

    @Schema(description = "总价", example = "29034")
    @ExcelProperty("总价")
    private BigDecimal totalPrice;

    @Schema(description = "库存数量", example = "3533")
    @ExcelProperty("库存数量")
    private BigDecimal count;

    @Schema(description = "申请数量")
    @ExcelProperty("申请数量")
    private BigDecimal quantity;

    @Schema(description = "状态", example = "1")
    @ExcelProperty(value = "状态", converter = DictConvert.class)
    @DictFormat("is_started") // TODO 代码优化：建议设置到对应的 DictTypeConstants 枚举类中
    private String status;

    @Schema(description = "备注", example = "你猜")
    @ExcelProperty("备注")
    private String remark;

    @Schema(description = "创建者")
    @ExcelProperty("创建者")
    private String creator;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}